﻿#include "priority_queue.h"

void test1()
{
	priority_queue<int> pq;
	pq.push(1);
	pq.push(2);
	pq.push(3);
	pq.push(4);
	pq.push(5);

	while (!pq.empty())
	{
		cout << pq.top() << " ";
		pq.pop();
	}
}

void test2()
{
	wyr::priority_queue<int,vector<int>,greater<int>> pq;
	pq.push(1);
	pq.push(3);
	pq.push(5);
	pq.push(2);
	pq.push(3);

	while (!pq.empty())
	{
		cout << pq.top() << " ";
		pq.pop();
	}

}
int main()
{
	test2();
	return 0;
}